/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.HanhTrinhDAO;
import DTO.HanhTrinhDTO;
import java.sql.ResultSet;

/**
 *
 * @author Nobita Chau
 */
public class HanhTrinhBUS {
    
    public static ResultSet  TimKiemTatCa() {
        return HanhTrinhDAO.TimKiemTatCa();
    }
     public static ResultSet TimDSTuyen(int gaDi, int gaDen)
    {
        return HanhTrinhDAO.TimDSTuyen(gaDi, gaDen);

    }
     public static boolean KiemTraTonTai(int MaNV)
    {
        return HanhTrinhDAO.KiemTraTonTai(MaNV);
    }
     public static boolean Them(HanhTrinhDTO n) {
         return HanhTrinhDAO.Them(n);
     }
    public static boolean Xoa(int id) {
         return HanhTrinhDAO.Xoa(id);
     }
     public static boolean Update(HanhTrinhDTO NV,int id){
          return HanhTrinhDAO.Update(NV,id);
     }
}
